package com.ruimei.controller;

import com.ruimei.service.LeaveStatisticSever;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@Api(tags={"学生请假查询"})
public class LeaveStatisticController {
    @Resource
    LeaveStatisticSever sever;

    @ApiOperation(value="W查询管理班级请假学生", notes="根据教师id,输入leaveId查询请假详情")
    @PostMapping({"/statistic/leave"})
    @ResponseBody
    public Map<String, Object> getStuLeaves(String classId, String leaveType,String beginTime, String endTime){
        Map<String, Object> map = sever.getStuLeaves(classId,leaveType,beginTime,endTime);
        return map;
    }



}
